import PenguinView from "../view/PenguinView";

const {ccclass, property} = cc._decorator;

@ccclass
export default class AddPenguin extends cc.Component {

    @property(cc.Prefab)
    player: cc.Prefab = null;

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {
        let node = cc.instantiate(this.player)
        this.node.addChild(node)
        let comp: PenguinView = node.getComponent(PenguinView)
    }

    // update (dt) {}
}
